/* 简化版文件预览样式 */

.simple-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.simple-preview-container {
    background: white;
    border-radius: 8px;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.simple-preview-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.simple-preview-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.simple-preview-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 20px;
}

.simple-preview-filename {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    text-align: center;
    font-weight: 500;
    word-break: break-all;
}

/* 图片预览 */
.simple-image-preview img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
}

/* 视频预览 */
.simple-video-preview video {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 4px;
}

/* 音频预览 */
.simple-audio-preview {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.audio-info {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.simple-audio-preview audio {
    width: 300px;
    max-width: 100%;
}

/* 不支持的类型 */
.simple-unsupported {
    text-align: center;
    color: #666;
    padding: 40px;
}

.simple-unsupported p:first-child {
    font-size: 48px;
    margin-bottom: 15px;
}

.simple-unsupported p:last-child {
    font-size: 16px;
    word-break: break-all;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 响应式 */
@media (max-width: 768px) {
    .simple-preview-container {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .simple-preview-content {
        padding: 15px;
        min-height: 200px;
    }
    
    .simple-preview-filename {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .simple-audio-preview audio {
        width: 250px;
    }
}